<?php
header("content-type:text/html;charset=utf8");
$id=$_GET['id'];
$dbh= new  PDO ( 'mysql:host=localhost;dbname=mhsw' ,'root','root' );
$sql="delete from company where id='$id'";
$arr=$dbh->exec($sql);
if($arr)
{
    echo 1;
}
else{
    echo 2;
}